package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// 这是启动类
@SpringBootApplication
@Slf4j
@MapperScan("/com.itheima.reggie.mapper")
@EnableTransactionManagement //开启对事物管理的支持
public class WebAppApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebAppApplication.class,args);
        log.info("项目启动成功");
        log.info("lucy 分支修改了代码");
    }
}
